﻿using System;
using System.Windows.Forms;

namespace DevelopersTestPad.Worksheets.DotNet
{
    internal partial class SubView : UserControl
    {
        /// <summary>
        /// Occurs when a sub view activation is needed.
        /// </summary>
        public event EventHandler ActivationNeeded;

        public SubView()
        {
            InitializeComponent();
        }

        /// <summary>
        /// Raises the ActivationNeeded event.
        /// </summary>
        /// <param name="e">EventArgs.Empty</param>
        protected virtual void OnActivationNeeded(EventArgs e)
        {
            EventHandler handler = ActivationNeeded;
            if (handler != null)
            {
                handler(this, e);
            }            
        }

    }
}
